import { createApp } from 'vue'
import '@/assets/css/index.scss'
import 'vant/lib/index.css'
import App from './App.vue'
import router from './router'
import store from './store'

// 动态导入确保模块加载顺序
async function initApp() {
  const Vant = await import('vant')

  const app = createApp(App)
  app.use(store)
  app.use(router)
  app.use(Vant.default)
  app.mount('#app')
}

initApp()